package com.party.service.vote;

import com.party.common.Page;
import com.party.model.VoPtion;

import java.util.List;

/**
 * 自建投票
 */
public interface VoPtionService {
    /**
     * 增删改查
     */
    public int addVoPtion(VoPtion voPtion);

    public int deleteVoPtionByPrimaryKey(Integer id);

    public int deleteVoPtionByIds(String ids);

    public VoPtion getVoPtionByPrimaryKey(Integer id);

    public int updateVoPtionByPrimaryKey(VoPtion voPtion);

    public List<VoPtion> getAllVoPtionByVoteId(Integer voteid);

    public int updateVoPtionVotesByIds(String[]values);
    /**
     * 获得自建投票数据列表（分页）
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getVoPtionList(VoPtion voPtion, int pageSize, int pageNumber);

    /**
     * 获取
     * @param voPtion
     * @return
     */
//    public List<VoPtion> getAllVoPtionByVoteId(VoPtion voPtion);
}
